<?php


namespace app\index\controller;


use app\common\controller\IndexBase;
use app\index\model\Listinfo;

class Knoledge extends IndexBase
{

    public function index(){
        return $this->fetch();
    }

    public function get_list(){
        $page = input('page',1);
        $listinfo = new Listinfo();
        $list = $listinfo->where(['is_show'=>1])->page($page,10)->select();
        $this->assign('list',$list);
        return $this->fetch();
    }
}